package com.quick.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.quick.order.dto.UserOrderDTO;
import com.quick.service.IOrderService;

import io.swagger.annotations.ApiOperation;
@RestController
@RequestMapping("api/order")
public class OrderController {
	@Autowired
	private IOrderService orderService;
	
	@PostMapping("submitOrder")
	@ApiOperation(value = "submitOrder",notes = "用户下单")
	public Boolean submitOrder(@RequestBody UserOrderDTO uo){
		return orderService.submitOrder(uo);
	}
}
